import request from '@/utils/request'

// 查询建议收集列表
export function listSuggestionOfCam(query) {
  return request({
    url: '/system/suggestionOfCam/list',
    method: 'get',
    params: query
  })
}

// 查询建议收集详细
export function getSuggestionOfCam(suggestionId) {
  return request({
    url: '/system/suggestionOfCam/' + suggestionId,
    method: 'get'
  })
}

// 新增建议收集
export function addSuggestionOfCam(data) {
  return request({
    url: '/system/suggestionOfCam',
    method: 'post',
    data: data
  })
}

// 修改建议收集
export function updateSuggestionOfCam(data) {
  return request({
    url: '/system/suggestionOfCam',
    method: 'put',
    data: data
  })
}

// 删除建议收集
export function delSuggestionOfCam(suggestionId) {
  return request({
    url: '/system/suggestionOfCam/' + suggestionId,
    method: 'delete'
  })
}

// AI 分析建议
export function analyzeSuggestionOfCam(data) {
  return request({
    url: '/system/suggestionOfCam/ai/analyze',
    method: 'post',
    data: data
  })
}

// 导出 AI 分析文档
export function exportSuggestionAnalysisDoc(data) {
  return request({
    url: '/system/suggestionOfCam/ai/exportDoc',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
